import request from '@/utils/request'

// 查询制程检验原辅料消耗统计列表
export function listIt(query) {
  return request({
    url: '/Productionline/it/list',
    method: 'get',
    params: query
  })
}

// 查询制程检验原辅料消耗统计详细
export function getIt(id) {
  return request({
    url: '/Productionline/it/' + id,
    method: 'get'
  })
}

// 新增制程检验原辅料消耗统计
export function addIt(data) {
  return request({
    url: '/Productionline/it',
    method: 'post',
    data: data
  })
}

// 修改制程检验原辅料消耗统计
export function updateIt(data) {
  return request({
    url: '/Productionline/it',
    method: 'put',
    data: data
  })
}

// 删除制程检验原辅料消耗统计
export function delIt(id) {
  return request({
    url: '/Productionline/it/' + id,
    method: 'delete'
  })
}

export function oneKey(query) {
  return request({
    url: '/Productionline/it/getCreate',
    method: 'get',
    params: query
  })
}